const express = require('express')
const router = express.Router()
const ShopCartController = require('../../controller/shopCart')

router.post('/add', ShopCartController.add)
router.post('/edit/:id', ShopCartController.edit)
router.get('/delete/:id', ShopCartController.delete)
router.get('/findByUid/:pageIndex', ShopCartController.findByUid)
router.get('/findAllByUid', ShopCartController.findAllByUid)
router.post('/setDefault', ShopCartController.setDefault)

module.exports = router